import Vue from 'vue'
import Vuex from 'vuex'
import moduleCart from './modules/cart.js'
import moduleUser from './modules/user.js'
Vue.use(Vuex)

export default new Vuex.Store({
  // state mutation action getters modules plugins
  state: {
    msg: 'Hello World'
  },
  modules: {
    m_cart: moduleCart,
    m_user: moduleUser
  }
})
